function Inicjuj() { for (let mapa of DaneMapy) { for (let temat of mapa.TematyMapy){ let nazwa = temat.Nazwa !== 'domyślny' ? temat.Nazwa : mapa.Nazwa; $('#kafle-mapy').append( '
' + '' + '' + '
' + nazwa + '
' + '
' + '
' ); } } }